/**
* Question.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs        :: http://sailsjs.org/#!documentation/models
*/

module.exports = {

	attributes: {

	  	name: {
			type: 'string',
			//required: true
		},

		description: {
			type: 'string',
		},

		question_type: {
			type: 'string',
			required: true
		},

		is_active: {
			type: 'boolean',
			defaultsTo: 'false'
		},

		quiz: {
			model: 'quiz',
			required: true
		},

		answers: {
			collection: 'questionchoice',
			via: 'question'
		},

		unique_id: {
			type: 'string'
		},

	}
};


